home *** CD-ROM | disk | FTP | other *** search
/ Aminet 33 / Aminet 33 - October 1999.iso / Aminet / disk / misc / TransADF.lha / TransADF / Source / util-asm.a < prev    next >
Encoding:
Text File  |  1998-10-05  |  1.1 KB  |  37 lines

  1. ; util-asm.a - Miscellaneous routines in assembly.
  2. ; Copyright (C) 1997,1998 Karl J. Ots
  3. ; This program is free software; you can redistribute it and/or modify
  4. ; it under the terms of the GNU General Public License as published by
  5. ; the Free Software Foundation; either version 2 of the License, or
  6. ; (at your option) any later version.
  7. ; This program is distributed in the hope that it will be useful,
  8. ; but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  10. ; GNU General Public License for more details.
  11. ; You should have received a copy of the GNU General Public License
  12. ; along with this program; if not, write to the Free Software
  13. ; Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  14.  
  15.  
  16. ; This should only be assembled with DAS using registered args.
  17. ; You may change it to work with another assembler, or include some
  18. ; stacked args stubs if you like.  I really don't care.
  19.  
  20.  
  21.     section    text,code
  22.  
  23.     xdef    @LEL
  24.     xdef    @LES
  25.  
  26. @LEL:    ; D0 = (ULONG) num
  27.     rol.w    #8,d0
  28.     swap    d0
  29. @LES:    ; D0 = (UWORD) num
  30.     rol.w    #8,d0
  31.     rts
  32.  
  33.     END
  34.